package com.longshine;

/**
 * @Author xiongmin
 * @Description TODO
 * @Date 2019/11/7 11:10
 * @Version 1.0
 **/
public class ThreadDemo implements Runnable {

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        int num = 20;
        for (int i = 1; i <= num; i++) {
            new Thread(new ThreadDemo(),"Thread====" + i).start();
            try {
                Thread.sleep(300);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
